<form action="index.php" method="post" name="adminForm">
  <table class="adminlist">
    <thead>
      <tr>
        <th width="20">
          <input type="checkbox" name="toggle" value="" onclick="checkAll(<?= count($this->schedules); ?>);" />
        </th>
        <th width="25%"><?= JHTML::_( 'grid.sort', 'Schedule', 'schedule', $this->lists['order_Dir'], $this->lists['order']); ?></th>
        <th width="10%"><?= JHTML::_( 'grid.sort', 'Team 1', 'team1', $this->lists['order_Dir'], $this->lists['order']); ?></th>
        <th width="10%"><?= JHTML::_( 'grid.sort', 'Team 2', 'team2', $this->lists['order_Dir'], $this->lists['order']); ?></th>
        <th class="10%"><?= JHTML::_( 'grid.sort', 'Conference', 'conference', $this->lists['order_Dir'], $this->lists['order']); ?></th>
        <th width="25%"><?= JHTML::_( 'grid.sort', 'Venue', 'venue', $this->lists['order_Dir'], $this->lists['order']); ?></th>
        <th width="5%"><?= JHTML::_( 'grid.sort', 'Published', 'published', $this->lists['order_Dir'], $this->lists['order']); ?></th>
      </tr>
    </thead>  
    <?php
      jimport('joomla.filter.output');
      for($i=0; $i< count($this->schedules); $i++)
      {
        $schedule    = &$this->schedules[$i];
        $link      = 'index.php?option=' . $option . '&task=edit&c=schedule&cid[]='. $schedule->id;

        $checked    = JHTML::_('grid.id', $i, $schedule->id);
        $published    = JHTML::_('grid.published', $schedule, $i);
        
        $team1     = JTEXT::_($schedule->team1);
        $team2     = JTEXT::_($schedule->team2);
        $conference   = JTEXT::_($schedule->conference);
        $venue     = JTEXT::_($schedule->venue);
        $schedule    = JTEXT::_($schedule->schedule);        
    ?>
      <tr>
        <td>
          <?= $checked; ?>
        </td>
        <td>
          <a href="<?= $link; ?>"><?= $schedule ?></a>
        </td>
        <td>
          <?= $team1 ?>
        </td>
        <td>
          <?= $team2 ?>
        </td>
        <td>
          <?= $conference; ?>
        </td>
        
        <td>
          <?= $venue; ?>
        </td>
        <td>
          <?= $published ?>
        </td>
      </tr>
    <?php
      }
    ?>
    <tr>
      <td colspan="7"><?= $this->pagination->getListFooter(); ?></td>
    </tr>
  </table>
  <input type="hidden" name="option" value="<?= JRequest::getVar( 'option' );?>"/>
  <input type="hidden" name="c" value="<?= JRequest::getVar('c', 'position'); ?>" />
    <input type="hidden" name="task" value=""/>
    <input type="hidden" name="boxchecked" value="0"/>      
  <input type="hidden" name="filter_order" value="<?= $this->lists['order']; ?>" />
  <input type="hidden" name="filter_order_Dir" value="<?= $this->lists['order_Dir']; ?>" />
</form>